Skip to content

fix: make package audits fail closed with artifact-bound evidence - #86

Merged
criptogus merged 2 commits into
mainfrom
fix/package-audit-evidence-20261123
Nov 23, 2026
Merged

criptogus merged 2 commits into
mainfrom
fix/package-audit-evidence-20261123

Conversation

@criptogus

Copy link
Copy Markdown
Owner

Summary

Package audits previously skipped unreadable/invalid inputs and could pass without inspecting any package. Bind every inspected YAML to its SHA-256, report coverage errors, and preserve explicit trust boundaries inspired by PromptIntel.

audit inputs → inspect known instruction fields → hash exact bytes
            → report all results + errors → exit 0 / 1 (blocked) / 2 (incomplete)

Also inspect contract/when_to_use/tools/permissions, restrict security-fixture severity reductions to examples, and add a repository-local package-trust-review skill. No external scanner, uploads, or safety certification is introduced.

Evidence

  • Before: empty/malformed inputs were silently skipped; security-tagged descriptions could lower injection severity.
    After: regression tests cover empty/missing roots, malformed/non-auditable inputs, hash changes, contract instructions, description attacks and invalid thresholds.
  • Full local suite: 372 tests passed; types, SDK types, dependency audit, production build, content validation, generated artifacts and navigation checks passed.
  • Current catalog: 141 packages audited, 0 blocked, 0 errors, 4 low-severity signals in security examples.
  • Skill validator and diff whitespace check passed.
  • Five existing files needed formatting-only corrections to clear 10 Prettier errors on current main; no pricing or payment behavior changed. GitHub checks must pass on the final commit before merge.

Merge Danger

Door: two-way (revertable code/docs change, no migration).

Blast Radius: auditing. Incomplete input now fails; JSON results include all inspected packages and hashes. Linked resources/runtime behavior remain outside this heuristic scan.

@criptogus
criptogus merged commit ee59daa into main Nov 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant